<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="<?php echo $this->asset('/css/main.css', true);?>" media="all" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->asset('/js/libjj.js');?>" type="text/javascript"></script>
<script src="<?php echo $this->asset('/js/incubate/app.js');?>" type="text/javascript"></script>
<script src="<?php echo $this->asset('/js/incubate/init.js');?>" type="text/javascript"></script>
<script src="<?php echo $this->asset('/js/lang.php');?>" type="text/javascript" charset="utf-8"></script>
<title><?php echo $this->pageTitle;?>-后台管理系统</title>
</head>

<body>
<div id="wrap">
  <div id="operate-bar">
    <div class="operate">操作：</div>
  </div>
  <div id="content-wrap">
    <div id="content">
      <?php if ($this->hasError()):?>
      <div id="error-block">
        <div class="icon"></div>
        <ul class="message">
          <?php foreach ($this->getError() as $error):?>
          <li><?php echo $error;?></li>
          <?php endforeach;?>
        </ul>
      </div>
      <?php endif; ?>
      <?php if ($this->hasInfo()):?>
      <div id="info-block">
        <div class="icon"></div>
        <div class="message"><?php echo $this->getInfo();?></div>
      </div>
      <?php endif; ?>
      <?php echo $content;?>
      <div style="height: 35px;"></div>
    </div>
  </div>
</div>
<script type="text/javascript">
//<![CDATA[
jQuery(function($) {
	var resize = function() {
			var wh = $(window).height(),
				ah = $('#operate-bar').height(),
				cp = parseInt($('#content').css('padding-top'));
			
			$('#content').height(wh - ah - cp * 2);
		};

	resize();
	$(window).resize(resize);
});
//]]>
</script>
</body>
</html>